package com.mymvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 王俊彪
 * @version 1.0
 */

@RequestMapping("/product")
@Controller
public class ProductController {
    @GetMapping("/list")
    public String list(Model model) {
        System.out.println("查询商品信息");
        model.addAttribute("id",123);
        return "list";
    }
}
